<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\controller;

use app\common\model\Transfer;
use app\common\model\UserAccount;
use app\common\model\UserAccountLog;
use think\Db;

/**
 * 应用商店控制器
 */
class ShopSubsidy extends AdminBase
{


    
    /**
     * 补贴记录列表
     */
    public function subsidy_list()
    {



        $this->assign('list', $this->logicShopSubsidy->subsidy_list($this->param,'a.*,c.username,is_company,c.mobile,s.shop_name,c.create_time as reg_time','a.create_time desc',50));
        $this->assign('wallet', \app\common\model\Wallet::all(['is_currency'=>1,'status'=>1,'is_virtual'=>1]));
        $this->assign('param',$this->param);
        return $this->fetch();
    }

    /**
     * 发放补贴
     */
    public function update_info()
    {

        $this->jump($this->logicShopSubsidy->update_info($this->param));

    }



}
